import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import empList from '@/components/empList'
import addEmp from '@/components/addEmp'
import updateEmp from '@/components/updateEmp'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/empList',
      name: 'empList',
      component: empList
    },
    {
      path: '/addEmp',
      name: 'addEmp',
      component: addEmp
    },
    {
      path: '/updateEmp',
      name: 'updateEmp',
      component: updateEmp
    }
  ]
})
